import { init } from '../../utils/realtime';
export async function getConvesation() {
    var user = AV.User.current()
    var realtime = init()
    var tom = await realtime.createIMClient(user.toJSON().objectId)
    var query = tom.getQuery();
    var convesations = await query.limit(20).containsMembers([user.toJSON().objectId]).find().catch(console.error.bind(console));
    return convesations
}